package com.idcf.boathouse.product.services;


import com.idcf.boathouse.product.dao.BaseDao;
import com.idcf.boathouse.product.mapper.CatMapper;
import com.idcf.boathouse.product.models.Food;
import com.idcf.boathouse.product.models.FoodPost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Service
public class LoginService {

    @Autowired
    CatMapper catMapper;
    public boolean verifyPass(String username,String password) {
        Long counts = catMapper.verifyPassword(username,password);
        if(counts > 0){
            return true;
        }
        return false;
    }

    public boolean register(String username,String password) {
        return true;
    }
}
